<?php 
include TMPL_PATH.'public/header.phtml';
?>
<div class="subnav">
    <div class="content-menu ib-a blue line-x">
        <a href='javascript:;' class="on"><em>语言列表</em></a><span>|</span>
        <a href="<?php echo U('site/language_add');?>">添加语言</a>
    </div>
</div>
<div class="pad_10">
<div class="table-list">
<table width="100%" cellspacing="0">
	<thead>
		<tr>
			<th width="35" align="center">ID</th>
			<th align="center">语言名称</th>
<!--			<th align="center">语言中文</th>-->
<!--			<th align="center">语言代码</th>-->
			<th align="center">语言包</th>
			<th width="40%" align="center">国家(地区)</th>
<!--			<th width="15%" align="center">图片</th>-->
			<th width="35" align="center">排序</th>
			<th width="10%" align="center">状 态</th>
			<th width="15%" align="center">管理操作</th>
		</tr>
	</thead>
<tbody>
<?php 
if(isset($languageList) && $languageList):
	foreach ($languageList as $language):
?>
	<tr>
		<td align="center"><?php echo $language['id'];?></td>
		<td align="center"><?php echo $language['name'];?></td>
<!--		<td align="center"><?php echo $language['name_cn'];?></td>-->
<!--		<td align="center"><?php echo $language['code'];?></td>-->
		<td align="center"><?php echo $language['directory'];?></td>
		<td align="left"><?php echo $language['locale'];?></td>
<!--		<td align="center" width="12%"><img src="/statics/images/flags/<?php echo $language['image'];?>"></td>-->
		<td align="center"><?php echo $language['listorder']?></td>
		<td align="center"><?php if($language['status']==1){?><font color="red">√</font><?php }else{?><font color="blue">×</font><?php }?></td>
		<td align="center" width="12%"><a href="<?php echo U('site/language_edit', 'lid='.$language['id']);?>" title="修改">修改</a>
			<?php if($language['id']!=6):?> |  <a href='<?php echo U('site/language_delete', 'lid='. $language['id']);?>' onClick="return confirm('确认要删除 『 <?php echo $language['name'];?> 』 吗？')">删除</a> <?php endif;?>
		</td>
	</tr>
<?php 
	endforeach;
endif;
?>
	</tbody>
</table>
</div>
</div>
</body>
</html>